# 测试环境
class TestConfig:
    JSON_AS_ASCII = False
    DEBUG = True

class DevConfig:
    JSON_AS_ASCII = False
    DEBUG = True
# 线上
class OnlineConfig:
    JSON_AS_ASCII = False
    DEBUG = False


def get_config(type):
    if type == 'test':
        return TestConfig
    elif type == 'online':
        return OnlineConfig
    else:
        return DevConfig